<template>
  <div
    class="qheader"
  >
    <div class="name">
      【{{ question.QuestionTypeName }}】
    </div>
    <div class="number">
      {{ question.Sequence }} / {{ totalNumber }}
    </div>
  </div>
</template>

<script lang="ts">
import Vue from 'vue'
export default Vue.extend({
  props: {
    totalNumber: {
      type: Number,
      default: 0,
    },
    question: {
      type: Object,
      default: () => ({}),
    },
  },
  data () {
    return {
      collectIcon: require('assets/exam/collect.png'),
      collectedIcon: require('assets/exam/collected.png'),
    }
  },
})
</script>

<style lang="scss" scoped>
.qheader {
  display: flex;
  justify-content: space-between;
  height: $exerciseHeader;
  font-size: 32px;
  color: #333;
  padding: 30px 24px 0;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 10;
  background: #fff;
  /deep/ {
    .has-header & {
      top: $navBarHeight;
    }
  }
}
.number {
  font-size: 28px;
  color: #666;
}
.name {
  font-size: 28px;
  color: #333;
}
.name-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 30px;
  margin-top: 10px;
}
.actions {
  display: flex;
  align-items: center;
  margin-right: -15px;
}
.icon {
  display: block;
  height: 32px;
}
.action {
  padding: 15px;
}
</style>
